deploy: Correctly swap bootloader version with new boot checksums
authorColin Walters <walters@verbum.org>
Fri, 20 Sep 2013 12:09:06 +0000 (08:09 -0400)
committerColin Walters <walters@verbum.org>
Fri, 20 Sep 2013 15:21:08 +0000 (11:21 -0400)
commit298625d7f82f1fe7434db5696fb7e9158c29e7b7
tree746c30a5cf2b86ca30ab2df9a6a92a2f181e96b9
parent08b8734576eb198a27a8f5c6ba0dfbb74843071e
deploy: Correctly swap bootloader version with new boot checksums

If we had two deployments with different boot checksums, and were
trying to remove the one that was the same and add a new one (the
normal case), we'd end up assuming due to comparison with 0 that
we only needed to do the fast subbootversion swap.

Fix this by actually putting 1 where we really mean 1.

And update the tests to verify the fix; I have double-verified by
undoing the fix, and noting that the test fails.

https://bugzilla.gnome.org/show_bug.cgi?id=708351
src/libostree/ostree-sysroot-deploy.c
tests/libtest.sh
tests/test-admin-deploy-2.sh